/* 导航栏 navigation.css - 视觉优化 */

.shell {
  position: fixed;
  width: 60px;
  height: 100%;
  background: rgba(56, 142, 60, 0.5); /* 半透明深绿色 */
  z-index: 9999;
  transition: width 0.4s;
  padding-left: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.shell:hover {
  width: 180px;
}

.shell ul {
  position: relative;
  height: 100vh;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shell ul li {
  position: relative;
  padding: 2px;
  margin-bottom: 4px;
}

.active {
  background: #fff;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  opacity: 0.5;
}

.active::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom-right-radius: 12px;
  box-shadow: 3px 3px 0 3px #fff;
  background: transparent;
}

.active::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: 0;
  width: 14px;
  height: 14px;
  border-top-right-radius: 12px;
  box-shadow: 3px -3px 0 3px #fff;
  background: transparent;
}

#logo {
  margin: 10px 0 20px 0;
  height: 60px;
}

.shell ul li a {
  position: relative;
  display: flex;
  white-space: nowrap;
  align-items: center;
  height: 40px;
  text-decoration: none;
  padding: 0 10px;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  padding: 0 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
  padding: 0 10px;
}

.icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%; /* 保证为正圆 */
  background: transparent;
  color: var(--primary-color);
  transition: 0.4s;
}

.icon i {
  font-size: 18px;
  z-index: 999;
}

.text {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 15px !important;
  color: var(--text-secondary);
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.4s;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
}

/* 收起时隐藏文字 */
.hidden {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding-left: 0;
}

.shell ul li:hover a .icon,
.shell ul li:hover a .text {
  color: var(--accent-color);
}

.logo-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.75) !important;
  color: var(--primary-color) !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: opacity 0.4s, width 0.4s;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
  height: 100% !important;
  margin-left: 8px !important;
}

.active a .icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: 0.4s;
  border: 4px solid var(--primary-color);
  box-sizing: border-box;
  z-index: 1;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-secondary); /* 与文字一致 */
  margin-right: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .shell {
    width: 40px;
  }
  .shell:hover {
    width: 100px;
  }
  .text {
    font-size: 10px;
    padding-left: 4px;
  }
  .icon {
    min-width: 20px;
    width: 20px;
    height: 20px;
  }
} 